package com.example.om_export.common.timing;


import com.example.om_export.app.upload.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 定时任务统一配置
 * @author wb-ycl473317
 */
@Configuration
@EnableScheduling
public class JobTask {

    @Autowired
    private UploadService uploadService;

    /**
     * 每天两点删除无用附件
     */
//    @Scheduled(cron="0 0 2 * * ?")
//    public void removeUploadFile(){
//        uploadService.cleanFile();
//    }

}
